function unlockUser(id) {
    $.post(basePath + "/user/unlock", { id: id }, function (data) {
        data = eval("(" + data + ")");
        if (data.success)
            $("#main-page").load(basePath + "/user/list", {"page":$(".active span").text() - 1});

        if (!data.success) alert(data.message);
    })

}